
#include	"SysConfig.h"
#include	"Define.h"
#include	"Port.h"
#include	"HEF_4052.h"

#ifdef  HEF4052
#define	HEF4052_HIGH	0
#define	HEF4052_LOW		1

void HEF4052_SelectSource(unsigned char ucSrc)
{
	switch  (ucSrc)
	{
		case HEF4052_INPUT_Y0:
			PO_HEF4052_A1 = HEF4052_LOW;
			PO_HEF4052_A0 = HEF4052_LOW;
			break;
		case HEF4052_INPUT_Y1:
			PO_HEF4052_A1 = HEF4052_LOW;
			PO_HEF4052_A0 = HEF4052_HIGH;
			break;
		case HEF4052_INPUT_Y2:
			PO_HEF4052_A1 = HEF4052_HIGH;
			PO_HEF4052_A0 = HEF4052_LOW;
			break;
		case HEF4052_INPUT_Y3:
			PO_HEF4052_A1 = HEF4052_HIGH;
			PO_HEF4052_A0 = HEF4052_HIGH;
			break;
	}
}

#endif